#include "sprites.hh"
Sprites::Sprites()
{
	for(int i=0; i<15; i++)
	{
		sprites[i].w = 64;
		sprites[i].h = 64;
	}

	//Snake
	
	//Head
	
	//right
	sprites[0].x = 256;
	sprites[0].y = 0;

	//left
	sprites[1].x = 192;
	sprites[1].y = 64;

	//up
	sprites[2].x = 192;
	sprites[2].y = 0;

	//down
	sprites[3].x = 256;
	sprites[3].y = 64;



	//Midle

	sprites[4].x = 64;
	sprites[4].y = 0;

	sprites[5].x = 128;
	sprites[5].y = 64;



	//r-d - u-l
	sprites[6].x = 128;
	sprites[6].y = 0;

	//r-u - d-l
	sprites[7].x = 128;
	sprites[7].y = 128;

	//l-d - u-r
	sprites[8].x = 0;
	sprites[8].y = 0;

	//l-u - d-r
	sprites[9].x = 0;
	sprites[9].y = 64;

	//Tail
		
	//right
	sprites[10].x = 256;
	sprites[10].y = 128;

	//left
	sprites[11].x = 192;
	sprites[11].y = 192;

	//up
	sprites[12].x = 192;
	sprites[12].y = 128;

	//down
	sprites[13].x = 256;
	sprites[13].y = 192;

	//apple
	sprites[14].x = 0;
	sprites[14].y = 192;
	

}

SDL_Rect* Sprites::getSprite(int i)
{
	return &sprites[i];
}
